<html>
<head>

</head>
<body>
this is order list
<table border="1">
    <tr>
        <td>日期</td>
        <td>订单ID</td>
        <td>商品名称</td>
        <td>数量</td>
        <td>单价</td>
        <td>商品总价</td>
        <td>订单总价</td>
        <td>支付状态</td>
        <td>支付操作</td>
    </tr>
<#if orderList??>
    <#list orderList as vo>
        <tr>
            <td>${vo.sDate?string('yyyy-MM-dd')}</td>
            <td>${vo.id?if_exists}</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>${vo.totalPrice?if_exists}</td>
            <td>${vo.status?if_exists}</td>
            <td>
                <#if vo.status = '待支付'>
                    <a href="/pay?orderId=${vo.id?if_exists}">支付</a>
                </#if>
            </td>
        </tr>
    <#if vo.orderDetailList??>
        <#list  vo.orderDetailList as voDetail>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>${voDetail.productName?if_exists}</td>
                <td>${voDetail.num?if_exists}</td>
                <td>${voDetail.price?if_exists}</td>
                <td>${voDetail.totalPrice?if_exists}</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </#list>
    </#if>
    </#list>
</#if>
</table>
<a href="/">返回</a>
</body>
</html>